#-*- coding:gbk -*-
'''
Created on 2012-7-23

@author: xxy
'''
import id_generator

class GameObject(object):
    def __init__(self, name, guid = None):
        self.m_guid = -1
        if guid != None:
            self.m_guid = guid
            id_generator.ObjectIdGenerator().setGuid(guid)
        else:
            self.m_guid = id_generator.ObjectIdGenerator().getGuid()
        self.m_name = name
        

    def getName(self):
        return self.m_name
    
    def getGuid(self):
        return self.m_guid
        
    def toDict(self):
        pass
        